@charset "UTF-8";
@import 'sassConfig';
* {
    padding: 0;
    margin: 0;
}

.color-main {
    color: $color-main;
}

.color-second {
    color: $color-second;
}

.text-main {
    color: $text-main;
}

// 清除浮动
.clearfix:after {
    content: '';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

* html .clearfix {
    height: 1%
}

.clearfix {
    display: block;
}

.container {
    width: $container;
    margin: 0 auto;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.logo {
    img {
        display: block;
    }
}

// 顶部菜单
.menu-link {
    margin-top: 15px;
    margin-bottom: 25px;
    line-height: 22px;
    a,
    span,
    div {
        float: right;
    }
    a {
        color: $text-gray
    }
    .link {
        width: 1px;
        height: 12px;
        margin: 6px 11px 0;
        background-color: #cfcfcf;
    }
}

// 语言菜单
.lang {
    position: relative;
    width: 53px;
    height: 22px;
    background-color: #ececec;
    color: $text-gray;
    text-align: center;
    &::after {
        content: '';
        display: inline-block;
        height: 6px;
        width: 6px;
        margin: 0 0 3px 4px;
        border-left: 1px solid #b5b5b5;
        border-bottom: 1px solid #b5b5b5;
        @include webkit(box-sizing, border-box);
        @include webkit(transform, rotate(-45deg));
    }
    &:hover {
        ul {
            display: block;
        }
    }
    ul {
        z-index: 10;
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 95px;
        background-color: #ececec;
    }
    a {
        display: block;
        width: 100%;
        height: 28px;
        line-height: 28px;
        text-align: center;
        &:hover {
            color: $color-main;
            background-color: #e0e0e0;
        }
    }
}

// 头部导航nav
nav {
    >ul {
        >li {
            float: left;
            >a {
                color: #000;
                font-weight: bold;
                &::after {
                    display: none;
                    content: '';
                    position: absolute;
                    top: 100%;
                    left: 50%;
                    margin-left: -7px;
                    border-top: 7px solid #cfcfcf;
                    border-right: 7px solid transparent;
                    border-left: 7px solid transparent;
                }
            }
            &:hover,
            &.current {
                a {
                    background-color: #f5f5ff;
                    &::after {
                        display: block;
                    }
                }
            }
            >ul {
                padding-top: 17px;
            }
        }
    }
    ul {
        ul {
            display: none;
            position: absolute;
            a {
                height: 41px;
                line-height: 41px;
                color: #000;
                &:hover {
                    background-color: #eaeaea;
                }
            }
        }
    }
    li {
        position: relative;
        &:hover {
            >ul {
                display: block;
                ul {
                    position: absolute;
                    left: 100%;
                    top: 0;
                }
            }
        }
        a {
            display: block;
            width: 144px;
            height: 53px;
            line-height: 53px;
            text-align: center;
        }
    }
}
